package com.szh.htmltopdf;


import com.szh.htmltopdf.config.MyProperties;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@Slf4j
// @ConfigurationPropertiesScan(basePackageClasses = HtmltoPdfApplication.class)
@EnableConfigurationProperties(value = MyProperties.class)
// @Import(value = GlobalExceptionHandler.class)
@EnableTransactionManagement
public class HtmltoPdfApplication {

    public static void main(String[] args) {
        SpringApplication.run(HtmltoPdfApplication.class, args);
        log.error("---------- HtmltoPdfApplication --- run ---");
    }
}
